home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Shareware
/
IDimager Personal 4.2.0.3
/
setup_IDimager_Personal_V4.exe
/
{app}
/
web
/
js
/
idimager.js
next >
Wrap
Text File
|
2008-06-27
|
847b
|
47 lines
NS4 = (document.layers) ? true : false;
function doInit()
{
var myGlobalHandlers =
{
onCreate: function(){
$('imgHome').src = '%var:PageOffset/images/spinner.gif';
},
onComplete: function() {
if(Ajax.activeRequestCount == 0)
{
$('imgHome').src = '%var:PageOffset/images/home.png';
}
}
};
Ajax.Responders.register(myGlobalHandlers);
}
function doSearch (AText)
{
getHTML('%var:PageOffset/modules/search.psc', 'thumbs', 'text=' + escape(utf8.encode(AText)) + '&labels=y&albums=y');
}
function selectAll(event)
{
$('searchInput').select();
}
function checkEnter(event)
{
var code = 0;
if (NS4)
code = event.which;
else
code = event.keyCode;
if (code==13)
doSearch ($F('searchInput'));
}